package com.southsmart.springboot.smartdoc.constant;

/**
 * @author : CaoLongMin
 * @version 1.0
 * @since 2021/4/21
 */
public enum LevelEnum implements IEnum{

    /**
     * 国家
     */
    COUNTRY(0, "国家"),
    /**
     * 省
     */
    PROVINCE (1, "省"),
    /**
     * 市
     */
    CITY(2, "市"),

    /**
     * 区县
     */
    DISTRICT(3, "区县");
    private int code;

    private String message;

    LevelEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getName() {
        return message;
    }
}
